package org.csu.service;


import org.csu.entity.*;
import org.csu.validator.ValidationResult;
import org.csu.vo.BaseResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

public interface BookBorrowService {
    String searchBooks(BookQuery query, Integer pageNum);
    ResponseEntity<BaseResponse<BorrowResult>> borrowBook(BorrowRequest request);
    String getBorrowingList(Integer pageNum);
    ResponseEntity<BaseResponse<Boolean>> applyReturn(Integer bookId);
    ResponseEntity<BaseResponse<Boolean>> confirmReturn(Integer bookId);
    ValidationResult validateBorrowRequest(BorrowRequest request);
    BorrowOperationResult processBookBorrow(Integer bookId, Integer userId);
    Boolean  processBookReturn(Integer bookId);
}
